package com.soo.hoo.core.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>消息对象，消息载体扩展类</p>
 *
 * @author 杨燚
 * @since 2023/6/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MessagePayload<T> implements Serializable {
    
    @Serial
    private static final long serialVersionUID = -6012483403547247083L;
    
    
    /**
     * 接受消息的对象，收件人id
     */
    private String receiver;
    
    /**
     * 消息体
     */
    private T content;
}
